﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetail.aspx.cs" Inherits="shop_OrderDetail" %>

<%@ Register Src="~/Banner.ascx" TagPrefix="top" TagName="banner" %>
<%@ Register Src="~/header.ascx" TagName="banner" TagPrefix="uc1" %>
<%@ Register Src="~/Foot.ascx" TagPrefix="foot" TagName="foot" %>
<%@ Register Src="~/shop/Left.ascx" TagName="LeftBanner" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>订单详细-<%= SectionProxyData.GetSetValue(3)%></title>

    <link href="/user/css/userinfo.css" rel="stylesheet" type="text/css" />
    <link href="/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/css/style.css" rel="stylesheet" type="text/css" />
    <link href="/user/css/common.css" rel="stylesheet" type="text/css" />

    <script src="../JavaScript/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../JavaScript/ShowDivDialog.js" type="text/javascript"></script>

    <script type="text/javascript">
        function checkdata(type) {
            if (type == 1) {
                showload_super();
                return true;
            }
            else {
                var tbshopremark = $("#tbshopremark").val();
                if (tbshopremark == "") {
                    alert("请输入拒绝原因");
                    return false;
                }
                if (confirm('确认要拒绝吗？')) {
                    return true;
                }
                else {
                    return false;
                }
            }

        }
        $(document).ready(function () {
            initshopnav(3);
            showorderlocal();
        })


    </script>


</head>
<body>
    <form id="form1" runat="server">
        <top:banner ID="Banner1" runat="server" />
        <uc1:banner ID="Banner2" runat="server" />

         <asp:HiddenField runat="server" ID="hidLat" />
        <asp:HiddenField runat="server" ID="hidLng" />
        <asp:HiddenField runat="server" ID="hfcityname" />
        <asp:HiddenField runat="server" ID="hfcityid" />
        <asp:HiddenField runat="server" ID="hfstate" />
        <asp:HiddenField runat="server" ID="hflatlng" />
        <asp:HiddenField runat="server" ID="hfdeliverid" />
        <asp:HiddenField runat="server" ID="hforderid" />
        <asp:HiddenField runat="server" ID="hfusername" />
        <asp:HiddenField runat="server" ID="hfaddress" />
        <asp:HiddenField runat="server" ID="hfshopname" />



        <div class="shop_containner clearfix">
            <uc2:LeftBanner runat="server" ID="Left" />
            <div class="shop_main">
                <div class="main-content">
                    <h1 class="topbg">订单状态（<%=OrderState %>）</h1>
                    <div class="usermima_order">
                        <ul>
                            <li><span class="left_span"><strong>订单信息</strong></span></li>
                            <li><span class="left_span">订单号：</span>
                                <asp:Label ID="lbOrderId" runat="server"></asp:Label>
                            </li>
                            <li><span class="left_span">商家名称：</span><asp:Label ID="togoname" runat="server"></asp:Label></li>
                             <li><span class="left_span">代收金额：</span><asp:Label ID="lbadvance" runat="server"></asp:Label>元</li>
                            <li><span class="left_span">商品总金额：</span><asp:Label ID="lboldprice" runat="server"></asp:Label>元</li>
                            <li><span class="left_span">配送费：</span><asp:Label ID="tbshopdiscountmoney" runat="server"></asp:Label>元</li>


                            <li><span class="left_span">配送距离：</span><asp:Label ID="tbcardpay" runat="server"></asp:Label>公里</li>

                            <li><span class="left_span">支付方式：</span><asp:Label ID="lblpaymode" runat="server"></asp:Label></li>
                            <li><span class="left_span">支付状态：</span><asp:Label ID="lbpaytstate" runat="server"></asp:Label></li>
                            <li runat="server" id="paymoney" style="display: none;"><span class="left_span">支付金额：</span><asp:Label
                                ID="lblpaymoney" runat="server"></asp:Label>元</li>
                            <li><span class="left_span">订单提交时间：</span><asp:Label ID="lbOrderdate" runat="server"></asp:Label></li>
                        </ul>
                        <ul>
                            <li><span class="left_span"><strong>收货人信息</strong></span></li>
                            <li><span class="left_span">收货人：</span><asp:Label ID="lbUName" runat="server"></asp:Label></li>
                            <li><span class="left_span">手机：</span><asp:Label ID="lbTel" runat="server"></asp:Label></li>
                            <li><span class="left_span">送餐时间：</span><asp:Label ID="lbmsg" runat="server"></asp:Label></li>
                            <li><span class="left_span">备注：</span><asp:Label ID="lbremark" runat="server"></asp:Label></li>
                            <li><span class="left_span">其他备注：</span><asp:Label ID="lbcardids" runat="server"></asp:Label></li>
                            <li><span class="left_span">收货地址：</span><asp:Label ID="lbAddress" runat="server"></asp:Label></li>
                            <li><span class="left_span">操作说明：</span>
                                <div runat="server" id="opmsgbox"></div>
                            </li>
                            <li><span class="left_span">拒绝理由：</span>
                                <asp:TextBox runat="server" ID="tbshopremark" TextMode="MultiLine" Width="200" placeholder="拒绝请输入原因" CssClass="input_on"></asp:TextBox>
                            </li>
                            <li>

                                <asp:Button ID="tbreceive" runat="server" Text="接收" CssClass="subBtn" OnClick="set_Click"
                                    OnClientClick="return checkdata(1);" />

                                <asp:Button ID="tbrefuse" runat="server" Text="拒绝" CssClass="subBtn" OnClick="set_Click"
                                    OnClientClick="return  checkdata(2);" />
                               

                              <%--  <input type="button" onclick=" window.open('printorder.aspx?id=<%= Request.QueryString["id"] %>');return false;" value="打印"  class="subBtn" />--%>


                                <a href="printorder.aspx?id=<%= Request.QueryString["id"] %>" target="_blank"  class="subBtn" style="width:75px; height:28px; padding:5px 15px; color:white;">打印小票</a>



                            </li>

                            <li><span class="left_span">订单状态：</span>
                                <asp:DropDownList runat="server" ID="ddlFunction" Style="width: 80px;">
                                </asp:DropDownList>
                                <asp:Button ID="btSearch" runat="server" Text="更新" CssClass="subBtn" OnClick="btSaveState_Click" />
                            </li>
                        </ul>
                    </div>
                    <div class="usermima">
                        <asp:Repeater ID="rtpBooks" runat="server">
                            <HeaderTemplate>
                                <table width="98%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #ccc;"
                                    class="listorder_table clear" align="center">
                                    <tr>
                                        <th>商品名称
                                        </th>
                                        <%-- <th style="width: 45%">
                                    备注
                                </th>--%>
                                        <th style="width: 20%">单价
                                        </th>
                                        <th style="width: 15%">数量
                                        </th>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <%# Eval("foodname")%>
                                    </td>
                                    <%--    <td>
                                <%# Eval("Remark")%>&nbsp;
                            </td>--%>
                                    <td class="orange">￥<%# Convert.ToDecimal(Eval("FoodPrice")) %>
                                    </td>
                                    <td>
                                        <%#Eval("FCounts") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                    <div class="process_btn">
                        <asp:Button ID="Button1" OnClick="Button1_Click" CssClass="subBtn" runat="server"
                            Text="返回列表" />
                    </div>

                    <div class="indis_right_map">
                        <div id="map_canvas" style="width: 100%; height: 338px">
                        </div>
                    </div>



                </div>
            </div>
        </div>
        <foot:foot runat="server" ID="foot" />
    </form>
</body>
</html>
<script src="../javascript/eventwrapper.min.js" type="text/javascript"></script>

<script src="http://api.map.baidu.com/api?v=1.2" type="text/javascript"></script>
<script src="js/orderdetail.js"></script>
